package com.example.demo;

import android.os.Parcel;
import android.os.Parcelable;

import java.io.Serializable;

//序列化实体类 1.用java实现
public class User implements Serializable {
    private String phone;
    private String pwd;
    private String idNum;
    private String address;

    @Override
    public String toString() {
        return "User{" +
                "phone='" + phone + '\'' +
                ", pwd='" + pwd + '\'' +
                ", idNum='" + idNum + '\'' +
                ", address='" + address + '\'' +
                '}';
    }

    public User() {
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getPwd(String s) {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public String getIdNum() {
        return idNum;
    }

    public void setIdNum(String idNum) {
        this.idNum = idNum;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
}
}
